<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>这里是选择评教课程页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="publicStyle/css/bootstrap.css">

  </head>


  <body>
  <form action="${pageContext.request.contextPath }/subpj" method="post" onSubmit="return show_confirm();">
 <input type="hidden" name="eid" value=" ${param.eid }">
  	<div align="center"><h2>课程名称：${param.cname }&nbsp;&nbsp; 任课老师：${param.tname }</h2></div>
    <table class="table table-striped table-bordered table-hover table-condensed">
    <tr><th rowspan="2">序号</th>
    		<th rowspan="2">评教指标内容</th>
    		<th colspan="5" align="center">评价选项（单选）</th>
    </tr>
    <tr>
    		<th>非常同意</th>
    		<th>同意</th>
    		<th>一般</th>
    		<th>不同意</th>
    		<th>非常不同意</th>
    </tr>

    <tr>
    		<td>1</td>
    		<td>有明确的教学目标与计划，教学进度安排得当</td>
    		<td><input type="radio" name="1" value="10"/></td>
			<td><input type="radio" name="1"  value="8"/></td>						
			<td><input type="radio" name="1"  value="6"/></td>	
			<td><input type="radio" name="1"  value="4"/></td>	
			<td><input type="radio" name="1"  value="2"/></td>
    </tr>
        <tr>
    		<td>2</td>
    		<td>授课内容有深度，学生能获得大量有价值的课程信息</td>
    		<td><input type="radio" name="2" value="10"/></td>
			<td><input type="radio" name="2"  value="8"/></td>						
			<td><input type="radio" name="2"  value="6"/></td>	
			<td><input type="radio" name="2"  value="4"/></td>	
			<td><input type="radio" name="2"  value="2"/></td>
    </tr>
            <tr>
    		<td>3</td>
    		<td>教学内容熟练，脱稿讲授</td>
    		<td><input type="radio" name="3" value="10"/></td>
			<td><input type="radio" name="3"  value="8"/></td>						
			<td><input type="radio" name="3"  value="6"/></td>	
			<td><input type="radio" name="3"  value="4"/></td>	
			<td><input type="radio" name="3"  value="2"/></td>
    </tr>
            <tr>
    		<td>4</td>
    		<td>讲课思路清晰，重点突出，难点处理得当</td>
    		<td><input type="radio" name="4" value="10"/></td>
			<td><input type="radio" name="4"  value="8"/></td>						
			<td><input type="radio" name="4"  value="6"/></td>	
			<td><input type="radio" name="4"  value="4"/></td>	
			<td><input type="radio" name="4"  value="2"/></td>
    </tr>
            <tr>
    		<td>5</td>
    		<td>讲课具有启发性，能引导学生独立分析与思考</td>
    		<td><input type="radio" name="5" value="10"/></td>
			<td><input type="radio" name="5"  value="8"/></td>						
			<td><input type="radio" name="5"  value="6"/></td>	
			<td><input type="radio" name="5"  value="4"/></td>	
			<td><input type="radio" name="5"  value="2"/></td>
    </tr>
            <tr>
    		<td>6</td>
    		<td>讲课理论联系实际，能调动学生听课的积极性，进而引发学生对本课程的兴趣</td>
    		<td><input type="radio" name="6" value="10"/></td>
			<td><input type="radio" name="6"  value="8"/></td>						
			<td><input type="radio" name="6"  value="6"/></td>	
			<td><input type="radio" name="6"  value="4"/></td>	
			<td><input type="radio" name="6"  value="2"/></td>
    </tr>
            <tr>
    		<td>7</td>
    		<td>注意精讲，适当练习，布置大作业，并及时认真批改</td>
    		<td><input type="radio" name="7" value="10"/></td>
			<td><input type="radio" name="7"  value="8"/></td>						
			<td><input type="radio" name="7"  value="6"/></td>	
			<td><input type="radio" name="7"  value="4"/></td>	
			<td><input type="radio" name="7"  value="2"/></td>
    </tr>
            <tr>
    		<td>8</td>
    		<td>大作业联系实际，有利于课程内容的学习</td>
    		<td><input type="radio" name="8" value="10"/></td>
			<td><input type="radio" name="8"  value="8"/></td>						
			<td><input type="radio" name="8"  value="6"/></td>	
			<td><input type="radio" name="8"  value="4"/></td>	
			<td><input type="radio" name="8"  value="2"/></td>
    </tr>
            <tr>
    		<td>9</td>
    		<td>开学初即向学生明确宣布累加式考核及评价方法</td>
    		<td><input type="radio" name="9" value="10"/></td>
			<td><input type="radio" name="9"  value="8"/></td>						
			<td><input type="radio" name="9"  value="6"/></td>	
			<td><input type="radio" name="9"  value="4"/></td>	
			<td><input type="radio" name="9"  value="2"/></td>
    </tr>
            <tr>
    		<td>10</td>
    		<td>通过该课学习，学生能掌握本课程的知识并获得相应的能力提高</td>
    		<td><input type="radio" name="10" value="10"/></td>
			<td><input type="radio" name="10"  value="8"/></td>						
			<td><input type="radio" name="10"  value="6"/></td>	
			<td><input type="radio" name="10"  value="4"/></td>	
			<td><input type="radio" name="10"  value="2"/></td>
    </tr>
     <tr>
    		<td colspan="7">学生意见与建议：感谢您对以上指标的评价，如果您还有其他任何新的想法，宝贵的建议，请在下面的空白处留言。我们珍视每一位同学个性化的思考。</td>
    </tr>
    <tr>
    		<td colspan="7" ><textarea maxlength="50" class="form-control" name="advise" placeholder="请在这里输入意见与建议,不超过50字"></textarea></td>
    </tr>

    </table>
    <br/>
    <div align="center"><input type="submit" value="提交" class="btn btn-info">&nbsp;&nbsp;<input type="reset" value="重置" class="btn btn-success"/></div>
    </form>

    
    <!-- 表单验证 -->
     <script type="text/javascript" language="JavaScript"> 
function show_confirm() 
{ 
	var result=false;
	var r1=document.getElementsByName("1"); 
	var r2=document.getElementsByName("2"); 
	var r3=document.getElementsByName("3"); 
	var r4=document.getElementsByName("4"); 
	var r5=document.getElementsByName("5"); 
	var r6=document.getElementsByName("6"); 
	var r7=document.getElementsByName("7"); 
	var r8=document.getElementsByName("8"); 
	var r9=document.getElementsByName("9"); 
	var r10=document.getElementsByName("10"); 
	var radio1=false;
	var radio2=false;
	var radio3=false;
	var radio4=false;
	var radio5=false;
	var radio6=false;
	var radio7=false;
	var radio8=false;
	var radio9=false;
	var radio10=false;
	for(var i=0;i<r1.length;i++)
	{
	    if(r1[i].checked)
	    {
	        radio1=r1[i];
	    }
	}
	for(var i=0;i<r2.length;i++)
	{
	    if(r2[i].checked)
	    {
	        radio2=r2[i];
	    }
	}
	for(var i=0;i<r3.length;i++)
	{
	    if(r3[i].checked)
	    {
	        radio3=r3[i];
	    }
	}
	for(var i=0;i<r4.length;i++)
	{
	    if(r4[i].checked)
	    {
	        radio4=r4[i];
	    }
	}
	for(var i=0;i<r5.length;i++)
	{
	    if(r5[i].checked)
	    {
	        radio5=r5[i];
	    }
	}
	for(var i=0;i<r6.length;i++)
	{
	    if(r6[i].checked)
	    {
	        radio6=r6[i];
	    }
	}
	for(var i=0;i<r7.length;i++)
	{
	    if(r7[i].checked)
	    {
	        radio7=r7[i];
	    }
	}
	for(var i=0;i<r8.length;i++)
	{
	    if(r8[i].checked)
	    {
	        radio8=r8[i];
	    }
	}
	for(var i=0;i<r9.length;i++)
	{
	    if(r9[i].checked)
	    {
	        radio9=r9[i];
	    }
	}
	for(var i=0;i<r10.length;i++)
	{
	    if(r10[i].checked)
	    {
	        radio10=r10[i];
	    }
	}
	if (radio1.value==null||radio2.value==null||radio3.value==null||radio4.value==null||radio5.value==null||radio6.value==null||radio7.value==null||radio8.value==null||radio9.value==null||radio10.value==null) {
		alert("提交失败，评价项不能有空哦！");
		result=false;
	}else{
		alert("评教卡提交成功，谢谢您的配合！");
		result=true;
	}
	return result;
} 
</script> 
  </body>
</html>